﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

#if STUDIO
namespace DreamSpace.Studio
#elif SERVER
namespace DreamSpace.Server
#else
namespace DreamSpace
#endif
{
    /// <summary>
    /// The bridge class is used to communicate to the host application from within JavaScript.
    /// </summary>
    public partial class HostBridge
    {
        //bool _IsServerBridge;
        //??public HostBridge(bool isServerBridge = false) { _IsServerBridge = isServerBridge; }

        public virtual bool isStudio() { return true; }
        public virtual bool isClient() { return true; }
        public virtual bool isServer() { return false; }

        public string getCurrentDir()
        {
            return Directory.GetCurrentDirectory();
        }

        public bool isWebNavigator() { return false; }

#if DEBUG
        public bool isDebugMode() { return true; }
#else
        public bool isDebugMode() { return false; }
#endif

        public virtual void setTitle(string title) { }
        public virtual string getTitle() { return ""; }

    }
}
